package com.xmuexp109.exp5.model;

import lombok.Data;


@Data
public class orderItem {

    private orderItemPo orderItemPo;

    public orderItem() {
        this.orderItemPo = new orderItemPo();
    }


    public orderItem(orderItemPo orderItemPo) {
        this.orderItemPo = orderItemPo;
    }




    @Override
    public int hashCode() {
        return orderItemPo.hashCode();
    }

    @Override
    public String toString() {
        return orderItemPo.toString();
    }


    //get方法用于retVo的读操作
    public Long getGoodsSkuId() {
        return orderItemPo.getGoodsSkuId();
    }

    public String getName() {
        return orderItemPo.getName();
    }

    public Long getOrderId() {
        return orderItemPo.getOrderId();
    }

    public Integer getQuantity() {
        return orderItemPo.getQuantity();
    }

    public Long getPrice() {
        return orderItemPo.getPrice();
    }

    public Long getDiscount() {
        return orderItemPo.getDiscount();
    }

    public Long getCouponActivityId() {
        return orderItemPo.getCouponActivityId();
    }

    public Long getBeShareId() {
        return orderItemPo.getBeShareId();
    }

    //set方法用于Vo的写操作
    public void setGoodsSkuId(Long goodsSkuId) {
        orderItemPo.setGoodsSkuId(goodsSkuId);
    }
    public void setQuantity(Integer quantity) {
        orderItemPo.setQuantity(quantity);
    }
    public void setCouponActivityId(Long couponActivityId) {
        orderItemPo.setCouponActivityId(couponActivityId);
    }
}
